﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace MvcToolbox
{
    /// <summary>
    /// Interface for MVC Grid
    /// </summary>
    /// <typeparam name="TModel">The type of the T model.</typeparam>
    /// <typeparam name="TValue">The type of the T value.</typeparam>
    public interface IMvcGrid<TModel, TValue>
    {
        /// <summary>
        /// Gets or sets the columns definition.
        /// </summary>
        /// <value>The columns definition.</value>
        List<GridColumn<TModel, TValue>> ColumnsDefinition { get; set; }

        /// <summary>
        /// Gets or sets the view data.
        /// </summary>
        /// <value>The view data.</value>
        ViewDataDictionary<TValue> ViewData { get; set; }
    }
}
